package com.iting.bean;

import java.io.Serializable;

/**
 * @author Zhipeng Nie
 * @version 1.1
 * @create 2021/10/20
 */
public class User implements Serializable {
    private static final long serialVersionUID = 1008611L;
    private Integer id;
    private String username;
    private String password;
    private String age;
    private String sex;
    private String address;
    private Integer status;

  public User(Integer id, String username, String password, String age, String sex, String address, Integer status) {
    this.id = id;
    this.username = username;
    this.password = password;
    this.age = age;
    this.sex = sex;
    this.address = address;
    this.status = status;
  }

  public User() {
    System.out.println("User的无参构造方法执行了");
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getAge() {
    return age;
  }

  public void setAge(String age) {
    this.age = age;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "User{" +
      "id=" + id +
      ", username='" + username + '\'' +
      ", password='" + password + '\'' +
      ", age='" + age + '\'' +
      ", sex='" + sex + '\'' +
      ", address='" + address + '\'' +
      ", status=" + status +
      '}';
  }
}
